package com.example.xui_study;
import com.xuexiang.xui.widget.banner.widget.banner.BannerItem;
import java.util.ArrayList;

import java.util.List;

/**
 * 演示数据
 *
 * @author xuexiang
 * @since 2018/11/23 下午5:52
 */
public class DemoDataProvider {

    public static String[] titles = new String[]{
            "伪装者:胡歌演绎'痞子特工'",
            "无心法师:生死离别!月牙遭虐杀",
            "花千骨:尊上沦为花千骨",
            "综艺饭:胖轩偷看夏天洗澡掀波澜",
            "碟中谍4:阿汤哥高塔命悬一线,超越不可能",
    };

    public static String[] urls = new String[]{//640*360 360/640=0.5625
            "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1569832702725&di=b1028d56dd249396a66ed2f14df98ed7&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F019df557bbb5f20000018c1b29e162.jpg%40900w_1l_2o_100sh.jpg",//伪装者:胡歌演绎"痞子特工"
            "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1569832750914&di=82b22791bc841e06e11c8198846314c6&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01847a59632279a8012193a30ca2b2.jpg%401280w_1l_2o_100sh.jpg",//无心法师:生死离别!月牙遭虐杀
            "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1569832750913&di=d16867fbf07a10d082ca6ea6907f5048&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F0177fa5afe7f44a801209a85c3afa1.jpg%401280w_1l_2o_100sh.jpg",//花千骨:尊上沦为花千骨
            "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1569832750909&di=b78ceb222473cce5562b3bf2035971e3&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01758757c51b100000018c1ba66195.jpg%401280w_1l_2o_100sh.jpg",//综艺饭:胖轩偷看夏天洗澡掀波澜
            "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1569832842141&di=66425ed50232f6f232e5ec45fc108f64&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01fcd1595da5d4a8012193a3d2f655.jpg",//碟中谍4:阿汤哥高塔命悬一线,超越不可能
    };

    public static List<BannerItem> getBannerList() {
        ArrayList<BannerItem> list = new ArrayList<>();
        for (int i = 0; i < urls.length; i++) {
            BannerItem item = new BannerItem();
            item.imgUrl = urls[i];
            item.title = titles[i];

            list.add(item);
        }

        return list;
    }


}
